package com.batchengine.worker;

import com.batchengine.pool.WorkerPool;
import com.batchengine.task.TaskContext;

/**

 * User: sunil.incubator@yahoo.com
 * Date: Sep 14, 2009
 * Time: 9:29:22 PM
 */
public class ExecutorStopSignal extends StopSignal {

    /**
     * @param name,   name of the stop signal.
     * @param taskId, schedules task id, which needs to be stopped.
     * @param pool,   pool which needs to be stopped.
     */
    public ExecutorStopSignal(String name, long taskId, WorkerPool pool) {
        super(name, taskId, pool);
    }

    /**
     * @param context, a TaskContext
     */
    public void stopSignal(TaskContext context) {
        removeWorkers(context);
    }
}
